libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
Shell-0.1.gir: libgnome-shell.la St-1.0.gir
-Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-2.91 TelepathyGLib-0.12
+Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-2.91 TelepathyGLib-0.12 TelepathyLogger-1.0
Shell_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir)
Shell_0_1_gir_LIBS = libgnome-shell.la
Shell_0_1_gir_FILES = $(addprefix $(srcdir)/,$(libgnome_shell_la_gir_sources))
shell_global_get_self_contact_features_cb,
callback, NULL, NULL);
}
+
+/**
+ * shell_get_contact_events:
+ * @log_manager: A #TplLogManager
+ * @account: A #TpAccount
+ * @entity: A #TplEntity
+ * @num_events: The number of events to retrieve
+ * @callback: (scope async): User callback to run when the contact is ready
+ *
+ * Wrap tpl_log_manager_get_filtered_events_async because gjs cannot support
+ * multiple callbacks in the same function call.
+ */
+void
+shell_get_contact_events (TplLogManager *log_manager,
+ TpAccount *account,
+ TplEntity *entity,
+ guint num_events,
+ GAsyncReadyCallback callback)
+{
+ tpl_log_manager_get_filtered_events_async (log_manager,
+ account,
+ entity,
+ TPL_EVENT_MASK_TEXT,
+ num_events,
+ NULL, NULL,
+ callback, NULL);
+}
#include <gtk/gtk.h>
#include <meta/meta-plugin.h>
#include <telepathy-glib/telepathy-glib.h>
+#include <telepathy-logger/telepathy-logger.h>
G_BEGIN_DECLS
const TpContactFeature *features,
ShellGetSelfContactFeaturesCb callback);
+void shell_get_contact_events (TplLogManager *log_manager,
+ TpAccount *account,
+ TplEntity *entity,
+ guint num_events,
+ GAsyncReadyCallback callback);
+
G_END_DECLS
#endif /* __SHELL_GLOBAL_H__ */